package cn.jiangxiong.pethome.system.dept.mapper;

import cn.jiangxiong.pethome.base.mapper.BaseMapper;
import cn.jiangxiong.pethome.system.dept.domain.Department;
import org.springframework.stereotype.Repository;

@Repository
public interface DepartmentMapper extends BaseMapper<Department> {
   /* //查询一个
    Department findOne(Long id);
    //查询全部
    List<Department> findAll();
    //分页查询高级查询
    List<Department> findByQuery(DepartmentQuery query);
    //查询总条数
    Long findByQueryCount(DepartmentQuery query);
    //添加
    void add(Department department);
    //修改
    void update(Department department);
    //删除
    void delete(Long id);

    //批量删除
    void batchDel(List<Long> ids);*/
   //根据id查询子类
   Long findByParentId(Long id);
}
